@extends('layouts.admin')

@section('maincontent')
    <div class="page-users page">
        <div class="page-title">
            <div class="title">用户列表</div>
        </div>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>#</th>
                <th>姓名</th>
                <th>头像</th>
                <th>注册时间</th>
                <th>查看数据</th>
            </tr>
            </thead>
            <tbody>

            @foreach($users as $key => $user)
                <tr>
                    <td>{{$user->user_id}}</td>
                    <td>{{$user->wx_name}}</td>
                    <td><img class="wxhead" src="{{$user->head}}"></td>
                    <td>{{$user->created_at}}</td>
                    <td><a href="{{asset("admin/records?userId=".$user->user_id)}}">查看</a></td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
@endsection